<include file="Public/head"/>
<body class="no-skin">
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                
                <div class="row">
                    <div class="col-xs-12">
                        <form class="form-horizontal" id="form" method="post" action="{:U('update')}">

                            <!-- PAGE CONTENT BEGINS -->

                           <input type="hidden" name="id" value="{$vo['id']}"/>
                           <input type="hidden" name="p" value="{$p}"/>
                           <input type="hidden" name="sh_status" value="{$sh_status}"/>
                            
                            <div class="form-group">
                                
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-0">
                                    任务名:</label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	{$vo.title}
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
							<div class="form-group">
							    <label class="col-sm-1 control-label no-padding-right" for="form-field-1">
							        任务备注:</label>
							    <div class="col-sm-9" style="padding-top: 6px;">
							        <span class="middle">
							        	{$vo.remark}
							        </span>
							    </div>
							</div>
							<div class="space-4"></div>
							<div class="form-group">
							    <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
							        任务图片： </label>
							    <div class="col-sm-9" style="padding-top: 6px;">
							    	<notempty name="pics">	
							        <foreach name="pics" item="pic">
							        	<img src="{$pic}" width="300" height="520"/>
							        </foreach>
							        </notempty>
							    </div>
							</div>
							<div class="space-4"></div>
							<div class="form-group">
							    <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
							        所属媒体： </label>
							    <div class="col-sm-9" style="padding-top: 6px;">
							        <span class="middle">
							        	{$vo.cate_name}
							        </span>
							    </div>
							</div>
							<div class="space-4"></div>
							<div class="form-group">
							    <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
							        任务要求： </label>
							    <div class="col-sm-9" style="padding-top: 6px;">
							        <span class="middle">
							        	{$vo.money_info}
							        </span>
							    </div>
							</div>
							<div class="space-4"></div>
							<div class="form-group">
							    <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
							        状态： </label>
							    <div class="col-sm-9" style="padding-top: 6px;">
							        <span class="middle">
							        	<if condition="$vo['status'] eq 0">待完成</if>
							        	<if condition="$vo['status'] eq 1">待审核</if>
							        	<if condition="$vo['status'] eq 2">已完成</if>
							        	<if condition="$vo['status'] eq 4">已取消</if>
							        </span>
							    </div>
							</div>
							<div class="space-4"></div>
							<if condition="$vo['status'] eq 1">
							<div class="form-group">
							    <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
							        状态审核： </label>
							    <div class="col-sm-9" style="padding-top: 6px;">
							        <select id="status" name="status" class="col-xs-10 col-sm-5"> 
							          <option value="2">已完成</option>
							          <option value="4">已取消</option>
							        </select>
							    </div>
							</div>
							<div class="form-group">
							    <label class="col-sm-1 control-label no-padding-right" for="form-field-1">
							        审核备注 </label>
							    <div class="col-sm-9">
							        <input type="text" name="sh_remark" id="sh_remark" placeholder="审核备注"
							               class="col-xs-10 col-sm-5">
							    </div>
							</div>
                            <div class="col-md-9" style="padding-left:5%">
                                <if condition="$vo['status'] eq 1">
                                <button class="btn btn-info submit" type="button">
                                    <i class="icon-ok bigger-110"></i>
                                    提交
                                </button>
                                </if>
                                <button class="btn" type="button" onclick="history.back(0)">
                                    <i class="icon-undo bigger-110"></i>
                                    返回
                                </button>
                            </div>
                        </form>
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
	var close_flag = "{:I('close')}";
	if(close_flag == 1){
		var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
		parent.layer.close(index); //再执行关闭
		parent.location.reload();
	}
	$(function () {
	    $("#tabs").tabs();
	    $(".submit").click(function () {
	    	var st = "{$vo['status']}";
	    	if(st == 1){
	    		$("#form ").submit();	
	    	}
	    });
	}); 
</script>
</body>
</html>
